<?php
/**
 * Created by PhpStorm.
 * User: tianleilei
 * Date: 2017/8/8
 * Time: 14:01
 */

namespace App\Model;

use Illuminate\Database\Eloquent\Model;

class Project extends Model
{
	protected $table = "project";
	protected $primaryKey = 'project_id';

	protected $fillable = [];

	public function user()
	{
		return $this->hasMany(
			'App\Model\User',
			'user_project_code',
			'project_code'
		);
	}


}